<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Admin Template</title>

    <link href="/movie1/Public/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/movie1/Public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/movie1/Public/static/admin/css/layout.css" rel="stylesheet">
    <link href="/movie1/Public/static/admin/css/min.css" rel="stylesheet">
    <script src="/movie1/Public/static/jquery/jquery.min.js"></script>

</head>
<body>

<!-- .row必须包含在 .container(固定宽度)或 .container-fluid(100% 宽度)中，以便为其赋予合适的排列(aligment)和内补(padding)-->
<nav class="layout-header">
    <div class="container layout-width">
        <div class="row">
            <div class="col-md-12">

                <div class="pull-left">
                    <a href="" class="logo">
                        <span class="fa fa-desktop"></span> 管理员后台
                    </a>
                </div>

                <div class="top-menu pull-left">
                    <ul>
                        <li>
                            <a href="<?php echo U('Index/index');?>">首页</a>
                        </li>
                        <li>
                            <a class="" href="">影院管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Cinema/index');?>">影院列表</a>
                                <a href="<?php echo U('Cinema/create');?>">添加影院</a>
                            </div>
                        </li>
                        <li><a class="" href="">电影管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Movie/index');?>">电影列表</a>
                                <a href="<?php echo U('Movie/create');?>">添加电影</a>
                            </div>
                        </li>
                        <li><a class="" href="">广告管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Addver/index');?>">广告列表</a>
                                <a href="<?php echo U('Addver/create');?>">添加广告</a>
                            </div>
                        </li>
                    </ul>
                </div>

                <div class="pull-right">
                <span class="account-info">
                    <span>欢迎:<?php echo \Admin\Model\Admin::user()['username']; ?></span>
                    <a class="text-muted">
                        <span class="glyphicon glyphicon-user"><span
                                class="icon-circle my-red-dot"></span></span>
                    </a>
                    <a class="login-out" href="<?php echo U('Default/loginout');?>">退出</a>
                </span>

                </div>

            </div>
        </div>
    </div>
</nav>

<section class="container layout-main layout-width">
    <div class="row">
        <div class="col-md-12 display-table">

            <!--左菜单区域-->

            <!-- 左菜单区域结束-->

            <!--右内容区域-->
            
    <div class="layout-content">

        <div class="page-title">广告管理</div>

        <div class="content-top">
            <ul class="top-nav">
                <li class="active"><span>添加广告</span></li>
            </ul>
            <div class="clearfix"></div>
        </div>
        <!--content-main start-->
        <div class="container-fluid content-main">
            <div class="row">
                <div class="col-md-12">

                    <div id="tsk" class="ui-tips bg-info" style="display:none">
                        <span class="icon glyphicon glyphicon-info-sign"></span> <span
                            id="ts">提示信息提示信息提示信息提示信息提示信息提示信息。</span>
                    </div>

                    <form class="col-md-offset-3 form-horizontal"  action="<?php echo U('Addver/create');?>" method="post" enctype="multipart/form-data" >

                        <div class="form-group">
                            <label class="col-sm-2 control-label" >广告名</label>
                            <div class="col-sm-5">
                                <input type="text" name="name" class="form-control"/>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" >广告链接</label>
                            <div class="col-sm-5">
                                <input type="text" name="url" class="form-control"/>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告图</label>
                            <div class="col-sm-8">
                                <input type="file" name="pic">
                                <span class="help-block">只能上传 <b>"jpg","png","jpeg"</b> 格式的图片</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告状态</label>
                            <div class="col-sm-5">
                                <select class="form-control" name="status">
                                    <option value="10">可用</option>
                                    <option value="30">禁用</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-8">
                                <button  style="margin-left: 90px;width: 150px" type="submit" class="btn btn-default">保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!--content-main end-->
    </div>
    <script>
        $(function(){
            if(<?php echo ($message); ?>!==''){
                $('#tsk').css('display','block');
                $('#ts').html('<?php echo ($message); ?>');
            }
        })
    </script>

            <!--右内容区域结束-->

            <div class="clearfix"></div>
        </div>
    </div>
</section>

<footer class="layout-footer">
    <div style="margin-top:30px" class="container layout-width">
        <div class="row">
            <div class="col-md-12">
                <ul class="links">
                    <li><a href="" target="_blank">关于我们</a></li>
                    <li><a href="" target="_blank">服务协议</a></li>
                    <li><a href="" target="_blank">运营规范</a></li>
                    <li><a href="" target="_blank">客服中心</a></li>
                    <li><a href="" target="_blank">在线客服</a></li>
                    <li><p class="copyright">Copyright.All Rights Reserved.</p></li>
                </ul>
            </div>
        </div>
    </div>
</footer>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="/movie1/Public/static/ie8/html5shiv.min.js"></script>
<script src="/movie1/Public/static/ie8/respond.min.js"></script>
<![endif]-->

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/movie1/Public/static/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>